#include <iostream>
#include <cstdlib>

using namespace std;

void swap(int &a, int &b);

int main()
{
  srand(time(0));
  int number_1 = rand() % 100;
  int number_2 = rand() % 100;
  if(number_1 < number_2)
  {
    swap(number_1, number_2);
  }

  cout << "What is the result of " << number_1 << " - " << number_2 << ": ";
  int result;
  cin >> result;
  if (result == number_1 - number_2)
  {
    cout << "Right!" << endl;
  }
  else
  {
    cout << "Wrong!" << endl;
  }

  return 0;
}

void swap(int &a, int &b)
{
  int temp = a;
  a = b;
  b = temp;

  return;
}
